 
{loop $tags $i $t}
<li><a href="{$t[linkurl]}"{if $target} target="{$target}"{/if}>
<img src="{$t[thumb]}" width="{$width}" height="{$height}" alt="{$t[alt]}"/>
</a></li>
 
{/loop}
 
{if $showpage && $pages}<div class="pages">{$pages}</div>{/if}